from pages.base_page import BasePage
from selenium.webdriver.common.by import By



class PayRecordPage(BasePage):
    url = '/manage/stock/pay-record'
    first_record_unicode_locater = (By.XPATH,'//*[@id="root"]/div/div/div[2]/div[2]/main/div/div[2]/div/div/div/div[2]/div/div[2]/div/div/div/div/div[2]/table/tbody/tr[2]/td[3]/span')



    def get_first_pay_unicode(self):
        """获取第一个支付记录的库存唯一码"""
        return self.get_text(self.first_record_unicode_locater)